﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace AirlineProject.Models
{
    public class TypeTicketModels
    {
        private DataClassesProjectAirlineDataContext dc = new DataClassesProjectAirlineDataContext();
        public TypeTicket InfoTypeTicket(int id)
        {
            return this.dc.TypeTickets.Single(tt=>tt.type_id==id);
        }
        public List<TypeTicket> ListTypeTicket(int id)
        {
            return this.dc.TypeTickets.Where(tt => tt.flight_id.Equals(id)).ToList();
        }
    }
}